use std::{env, fs};

use crate::lexer;
use pest_derive::Parser;

#[derive(Parser)]
#[grammar = "lexer.pest"]
struct SysYLexer;

fn main() {
    let args: Vec<String> = env::args().collect();

    if args.len() < 2 {
        eprintln!("Usage: {} <filename>", args[0]);
        std::process::exit(1);
    }

    let filename = &args[1];

    let input = fs::read_to_string("input.txt").expect("Failed to read file");

    let tokens = tokenize(&input);
}
